Show the workaround for single<->double width problem
authorKenichi Handa <handa@m17n.org>
Fri, 10 Jul 2009 04:19:18 +0000 (04:19 +0000)
committerKenichi Handa <handa@m17n.org>
Fri, 10 Jul 2009 04:19:18 +0000 (04:19 +0000)
of font selection in CJK environment.

etc/PROBLEMS

index 0654d00667f39822e3aa3077f2cdc9099ee6226a..e78f382e6ba93561e196ff10ccba8cbdb258dc34 100644 (file)
@@ -904,6 +904,26 @@ the following variables: tex-font-script-display (how much to
 lower/raise); tex-suscript-height-ratio (how much smaller than
 normal); tex-suscript-height-minimum (minimum height).
 
+** Some characters are displayed by single width glyphs.
+
+In Emacs 23.1, even in a CJK environment, several characters
+(e.g. U+00D7, MULTIPLICATION SIGN) are displayed by a single width
+glyph even if they belong to one of CJK charsets.  This is a known
+problem and will be fixed in the next version.  The workaround at the
+moment is to put something like this in your .emacs.
+
+(if (display-graphic-p)
+    (let ((fontset (face-attribute 'default :fontset)))
+      (set-fontset-font fontset '(#x80 . #xFF)
+                       (font-spec :registry "iso8859-1" :script 'latin))
+      (set-fontset-font fontset 'greek  '(nil . "iso8859-7"))
+      (set-fontset-font fontset 'cyrillic  '(nil . "iso8859-5"))
+      (set-fontset-font fontset '(#x80 . #xFFFF) '(nil . "jisx0208.1983-0") 
+                       nil 'append)))
+
+You may change "jisx0208.1983-0" to "gb2312.1980-0" if you are in
+Chinese language environment.
+
 * Internationalization problems
 
 ** M-{ does not work on a Spanish PC keyboard.